<!-- 首页 -->
<template>
	<view class="container">
		<view class="c-info">
			<OrgModule :info="orgInfo"></OrgModule>
		</view>
		<view class="c-hint">
			<u-icon name="error-circle" color="orange"></u-icon>
			<text>如机构信息有误，请在个人中心联系客服更改</text>
		</view>
		<!-- <view class="m-btn">
			<view class="btn-block">
				<u-button type="primary" text="修改" @click="navigateTo('orgEditInfo?type=update')"></u-button>
			</view>
		</view> -->
	</view>
</template>

<script>
	import OrgModule from "@/pages/pages_mine/components/OrgModule.vue"
	export default {
		name:"",
		components:{
			OrgModule
		},
		data() {
			return {
				// 机构信息
				orgInfo:{}
			}
		},
		onLoad(){
			this.getOrgInfo()
		},
		methods: {
			// 获取机构信息
			getOrgInfo(){
				this.$http.getOrgInfo().then(res=>{
					this.orgInfo = res
				}).catch(err => {
					uni.$u.toast(err.msg)
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.container{
		.c-info{
			background-color: #fff;
		}
		.c-hint{
			width: 100%;
			padding: 15rpx 0;
			color: #aaa;
			display: flex;
			align-items: center;
			font-size: 26rpx;
			&>text{
				padding-left: 15rpx;
			}
		}
	}
</style>
